package com.anlu.pattern.action.strategy;

import org.springframework.stereotype.Service;

/**
 * 第二单9折优惠
 */
@Service(value = "SecondDiscount")
public class SecondDiscount implements Discount {
    @Override
    public int calculate(int money) {
        System.out.println("进入到SecondDiscount");
        Double balance =  money * 0.9;
        return balance.intValue();
    }
}
